import request from '@/utils/request'

export function postList(data) {
  return request({
    url: '/post/list',
    method: 'post',
    data
  })
}

export function postAudit(data) {
  return request({
    url: '/post/audit',
    method: 'post',
    data
  })
}

export function postRemove(data) {
  return request({
    url: '/post/remove',
    method: 'post',
    data
  })
}

export function postCommentList(data) {
  return request({
    url: '/postComment/list',
    method: 'post',
    data
  })
}

export function postCommentAudit(data) {
  return request({
    url: '/postComment/audit',
    method: 'post',
    data
  })
}

export function postCategoryList(data) {
  return request({
    url: '/postCategory/list',
    method: 'post',
    data
  })
}

export function postCategoryCreate(data) {
  return request({
    url: '/postCategory/create',
    method: 'post',
    data
  })
}

export function postCategoryUpdate(data) {
  return request({
    url: '/postCategory/update',
    method: 'post',
    data
  })
}
